package com.wxy.web.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wxy.web.model.User;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author wxy
 * @since 2021-06-13
 */
public interface IUserService extends IService<User> {

    HashMap<String, Object> detail(String username);

    List<User> listByRoleId(@Param("roleId") Integer roleId, @Param("pageNum") Integer pageNum, @Param("pageSize") Integer pageSize);

    Integer countByRoleId(@Param("roleId") Integer roleId);

    Boolean insertUserRole(Integer userId,Integer roleId);

    Integer deleteRoleByUserId(Integer userId);

    User getByUsername(String username);
}
